package com.ruoyi.master.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

import java.util.List;

/**
 * 策略对象 strategy
 * 
 * @author jiandan
 * @date 2024-10-23
 */
@Data
public class Strategy extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    private Model model;

    private List<Achievement> achievements;

    /** 策略ID */
    private Long strategyId;

    /** 模型ID */
    @Excel(name = "模型ID")
    private Long modelId;

    /** 策略标题 */
    @Excel(name = "策略标题")
    private String title;

    /** 选择策略后的默认输入模板 */
    @Excel(name = "选择策略后的默认输入模板")
    private String placeholder;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 状态，10为草稿，20为私有，30申请公开待审核，40为已公开，50为申请公开未通过 */
    @Excel(name = "状态，10为草稿，20为私有，30申请公开待审核，40为已公开，50为申请公开未通过")
    private String status;

    /** 用户名 */
    @Excel(name = "用户名")
    private String createName;

    public void setStrategyId(Long strategyId) 
    {
        this.strategyId = strategyId;
    }

    public Long getStrategyId() 
    {
        return strategyId;
    }
    public void setModelId(Long modelId) 
    {
        this.modelId = modelId;
    }

    public Long getModelId() 
    {
        return modelId;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setPlaceholder(String placeholder) 
    {
        this.placeholder = placeholder;
    }

    public String getPlaceholder() 
    {
        return placeholder;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setCreateName(String createName) 
    {
        this.createName = createName;
    }

    public String getCreateName() 
    {
        return createName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("strategyId", getStrategyId())
            .append("modelId", getModelId())
            .append("title", getTitle())
            .append("placeholder", getPlaceholder())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("status", getStatus())
            .append("createName", getCreateName())
            .toString();
    }
}
